package cn.bb.test;

import cn.bb.pojo.IceImpl;
import cn.bb.pojo.Shopping;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo1 {
    @Test
    public void test(){
        IceImpl ice = new IceImpl();
        //ice.buyIce();
    }
    @Test
    public void test1(){
        ApplicationContext app = new ClassPathXmlApplicationContext("applicationcontext.xml");
        Shopping shop = app.getBean("shop", Shopping.class);
        shop.printInfo();
    }

}
